package com.lovo.game;

import com.lovo.util.Util;

/**
 * 电脑类
 */
public class Computer extends Role{
    @Override
    public void generateNumbers() {
        int [] numbers = this.getNumbers();
        for(int i = 0;i < 4;i++){
            numbers[i] = Util.random(0,9);
            for(int j = 0;j < i;j++){
                if(numbers[i] == numbers[j]){
                    i--;
                    break;
                }
            }
        }
    }
}
